package com.ruoyi.manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 患者，一般对接第三方对象 sick_person
 * 
 * @author liuyangyang
 * @date 2025-05-28
 */
public class SickPerson extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增ID */
    private Long sickPersonId;

    /** his病人id */
    @Excel(name = "his病人id")
    private String sourceId;

    /** 患者主页id;门诊病人为空(住院次数) */
    @Excel(name = "患者主页id;门诊病人为空(住院次数)")
    private Long visitId;

    /** 患者名字 */
    @Excel(name = "患者名字")
    private String sickName;

    /** 患者性别 */
    @Excel(name = "患者性别")
    private String sickSex;

    /** 患者年龄 */
    @Excel(name = "患者年龄")
    private Long age;

    /** 年龄单位 */
    @Excel(name = "年龄单位")
    private String ageUnit;

    /** 患者体重 */
    @Excel(name = "患者体重")
    private String weight;

    /** 患者身高 */
    @Excel(name = "患者身高")
    private String height;

    /** 血型 */
    @Excel(name = "血型")
    private String bloodType;

    /** 血型rh */
    @Excel(name = "血型rh")
    private String bloodRh;

    /** 名族 */
    @Excel(name = "名族")
    private String nation;

    /** 出生时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 身份证 */
    @Excel(name = "身份证")
    private String idCard;

    /** 上次床号 */
    @Excel(name = "上次床号")
    private String bedOld;

    /** 最新床号 */
    @Excel(name = "最新床号")
    private String bedNew;

    /** 患者住址 */
    @Excel(name = "患者住址")
    private String address;

    /** 患者电话 */
    @Excel(name = "患者电话")
    private String telephone;

    /** 收费类型code */
    @Excel(name = "收费类型code")
    private String chargeCode;

    /** 收费类型描述 */
    @Excel(name = "收费类型描述")
    private String chargeDesc;

    /** 军人标识 */
    @Excel(name = "军人标识")
    private String priorityName;

    /** 1正常0关闭 */
    @Excel(name = "1正常0关闭")
    private Long status;

    /** 就诊号 */
    @Excel(name = "就诊号")
    private String visitNo;

    /** 手麻对应的患者id */
    private String aisSickId;

    /** 0正常1删除 */
    private String delFlag;

    /** 代办人身份证 */
    @Excel(name = "代办人身份证")
    private String agentIdcar;

    /** 代办人姓名 */
    @Excel(name = "代办人姓名")
    private String agentName;

    /** 婚姻状态 */
    @Excel(name = "婚姻状态")
    private String marryDesc;

    /** 患者所在科室id */
    @Excel(name = "患者所在科室id")
    private String deptId;
    /** 患者所在科室 */
    @Excel(name = "患者所在科室")
    private String depCode;

    /** 患者国籍 */
    @Excel(name = "患者国籍")
    private String countryDesc;

    /** 患者健康号 */
    @Excel(name = "患者健康号")
    private String healthCard;

    /** 病案号 */
    @Excel(name = "病案号")
    private String documentNo;

    /** 死亡时间 */
    @Excel(name = "死亡时间")
    private String deadTime;

    public void setDeptId(String deptId) {this.deptId = deptId;}

    public String getDeptId() {return deptId;}

    public void setSickPersonId(Long sickPersonId)
    {
        this.sickPersonId = sickPersonId;
    }

    public Long getSickPersonId() 
    {
        return sickPersonId;
    }

    public void setSourceId(String sourceId) 
    {
        this.sourceId = sourceId;
    }

    public String getSourceId() 
    {
        return sourceId;
    }

    public void setVisitId(Long visitId) 
    {
        this.visitId = visitId;
    }

    public Long getVisitId() 
    {
        return visitId;
    }

    public void setSickName(String sickName) 
    {
        this.sickName = sickName;
    }

    public String getSickName() 
    {
        return sickName;
    }

    public void setSickSex(String sickSex) 
    {
        this.sickSex = sickSex;
    }

    public String getSickSex() 
    {
        return sickSex;
    }

    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }

    public void setAgeUnit(String ageUnit) 
    {
        this.ageUnit = ageUnit;
    }

    public String getAgeUnit() 
    {
        return ageUnit;
    }

    public void setWeight(String weight) 
    {
        this.weight = weight;
    }

    public String getWeight() 
    {
        return weight;
    }

    public void setHeight(String height) 
    {
        this.height = height;
    }

    public String getHeight() 
    {
        return height;
    }

    public void setBloodType(String bloodType) 
    {
        this.bloodType = bloodType;
    }

    public String getBloodType() 
    {
        return bloodType;
    }

    public void setBloodRh(String bloodRh) 
    {
        this.bloodRh = bloodRh;
    }

    public String getBloodRh() 
    {
        return bloodRh;
    }

    public void setNation(String nation) 
    {
        this.nation = nation;
    }

    public String getNation() 
    {
        return nation;
    }

    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }

    public void setIdCard(String idCard) 
    {
        this.idCard = idCard;
    }

    public String getIdCard() 
    {
        return idCard;
    }

    public void setBedOld(String bedOld) 
    {
        this.bedOld = bedOld;
    }

    public String getBedOld() 
    {
        return bedOld;
    }

    public void setBedNew(String bedNew) 
    {
        this.bedNew = bedNew;
    }

    public String getBedNew() 
    {
        return bedNew;
    }

    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    public void setTelephone(String telephone) 
    {
        this.telephone = telephone;
    }

    public String getTelephone() 
    {
        return telephone;
    }

    public void setChargeCode(String chargeCode) 
    {
        this.chargeCode = chargeCode;
    }

    public String getChargeCode() 
    {
        return chargeCode;
    }

    public void setChargeDesc(String chargeDesc) 
    {
        this.chargeDesc = chargeDesc;
    }

    public String getChargeDesc() 
    {
        return chargeDesc;
    }

    public void setPriorityName(String priorityName) 
    {
        this.priorityName = priorityName;
    }

    public String getPriorityName() 
    {
        return priorityName;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setVisitNo(String visitNo) 
    {
        this.visitNo = visitNo;
    }

    public String getVisitNo() 
    {
        return visitNo;
    }

    public void setAisSickId(String aisSickId) 
    {
        this.aisSickId = aisSickId;
    }

    public String getAisSickId() 
    {
        return aisSickId;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public void setAgentIdcar(String agentIdcar) 
    {
        this.agentIdcar = agentIdcar;
    }

    public String getAgentIdcar() 
    {
        return agentIdcar;
    }

    public void setAgentName(String agentName) 
    {
        this.agentName = agentName;
    }

    public String getAgentName() 
    {
        return agentName;
    }

    public void setMarryDesc(String marryDesc) 
    {
        this.marryDesc = marryDesc;
    }

    public String getMarryDesc() 
    {
        return marryDesc;
    }

    public void setDepCode(String depCode) 
    {
        this.depCode = depCode;
    }

    public String getDepCode() 
    {
        return depCode;
    }

    public void setCountryDesc(String countryDesc) 
    {
        this.countryDesc = countryDesc;
    }

    public String getCountryDesc() 
    {
        return countryDesc;
    }

    public void setHealthCard(String healthCard) 
    {
        this.healthCard = healthCard;
    }

    public String getHealthCard() 
    {
        return healthCard;
    }

    public void setDocumentNo(String documentNo) 
    {
        this.documentNo = documentNo;
    }

    public String getDocumentNo() 
    {
        return documentNo;
    }

    public void setDeadTime(String deadTime) 
    {
        this.deadTime = deadTime;
    }

    public String getDeadTime() 
    {
        return deadTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("sickPersonId", getSickPersonId())
            .append("sourceId", getSourceId())
            .append("visitId", getVisitId())
            .append("sickName", getSickName())
            .append("sickSex", getSickSex())
            .append("age", getAge())
            .append("ageUnit", getAgeUnit())
            .append("weight", getWeight())
            .append("height", getHeight())
            .append("bloodType", getBloodType())
            .append("bloodRh", getBloodRh())
            .append("nation", getNation())
            .append("birthday", getBirthday())
            .append("idCard", getIdCard())
            .append("bedOld", getBedOld())
            .append("bedNew", getBedNew())
            .append("address", getAddress())
            .append("telephone", getTelephone())
            .append("chargeCode", getChargeCode())
            .append("chargeDesc", getChargeDesc())
            .append("priorityName", getPriorityName())
            .append("status", getStatus())
            .append("visitNo", getVisitNo())
            .append("aisSickId", getAisSickId())
            .append("delFlag", getDelFlag())
            .append("agentIdcar", getAgentIdcar())
            .append("agentName", getAgentName())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("marryDesc", getMarryDesc())
            .append("depCode", getDepCode())
            .append("countryDesc", getCountryDesc())
            .append("healthCard", getHealthCard())
            .append("documentNo", getDocumentNo())
            .append("deadTime", getDeadTime())
            .toString();
    }
}
